package com.demo.properties;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashSet;
import java.util.Set;

/**
 * 操作日志配置类
 *
 */
@Data
@NoArgsConstructor
@ConfigurationProperties(prefix = RequestLogProperties.PREFIX)
public class RequestLogProperties {

    public static final String PREFIX = "request-log";

    /**
     * 是否打印http接口请求日志
     */
    @Value("${request-log.enableHttpLog}")
    private Boolean enableHttpLog;

    /**
     * 不打印http接口请求日志的url
     */
    private Set<String> excludeHttpLogUrls = new HashSet<>();

}


